<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:47:"./application/admin/template/system\sms_tpl.htm";i:1585028282;s:78:"D:\phpstudy\PHPTutorial\WWW\ejs86\application\admin\template\public\layout.htm";i:1585028281;s:78:"D:\phpstudy\PHPTutorial\WWW\ejs86\application\admin\template\public\footer.htm";i:1585028281;}*/ ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/public/plugins/layui/css/layui.css?v=<?php echo $version; ?>" media="all">
  <link rel="stylesheet" href="/public/static/admin/css/admin.css?v=<?php echo $version; ?>" media="all">
  <link rel="stylesheet" href="/public/static/admin/css/ey_layui.css?v=<?php echo $version; ?>" media="all">
  <link rel="stylesheet" href="/public/static/admin/font/ali-font/iconfont.css?v=<?php echo $version; ?>" media="all">
  <script type="text/javascript">
    var eyou_basefile = window.location.pathname;
    var module_name = "<?php echo MODULE_NAME; ?>";
    var __root_dir__ = "";
  </script>  
  <script type="text/javascript" src="/public/static/admin/js/jquery.js?v=<?php echo $version; ?>"></script>
  <script type="text/javascript" src="/public/static/admin/js/jquery-ui/jquery-ui.min.js?v=<?php echo $version; ?>"></script>
  <script type="text/javascript" src="/public/plugins/layer-v3.1.0/layer.js?v=<?php echo $version; ?>"></script>
  <script type="text/javascript" src="/public/static/admin/js/jquery.cookie.js?v=<?php echo $version; ?>"></script>
  <script type="text/javascript" src="/public/plugins/laydate/laydate.js?v=<?php echo $version; ?>"></script>
  <script src="/public/plugins/layui/layui.js?v=<?php echo $version; ?>"></script>
  <script src="/public/static/admin/js/global.js?v=<?php echo $version; ?>"></script>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-form layui-border-box layui-table-view house-table" lay-id="admin-arctype" >
                <div class="layui-table-box">
                    <div class="layui-table-body " >
                        <table cellspacing="0" cellpadding="0" border="0" class="layui-table layui-form" style="width: 100%" lay-skin="line">
                            <thead >
                            <tr>
                                <th class="w120">
                                    <div class="layui-table-cell w120"><span>模板名称</span></div>
                                </th>
                                <th class="w150 tc">
                                    <div class="layui-table-cell  w150 tc"><span>短信签名</span></div>
                                </th>
                                <th class="w200 tc">
                                    <div class="layui-table-cell w200 tc"><span>短信模板ID</span></div>
                                </th>
                                <th>
                                    <div class="layui-table-cell wauto"><span>发送短信内容</span></div>
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): ?>
                            <tr>
                                <td colspan="4" class="no-data tc">
                                    没有符合条件的数据
                                </td>
                            </tr>
                            <?php else: if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $k=>$vo): ?>
                            <tr>
                                <td>
                                    <div class="layui-table-cell w120">
                                        <?php echo $vo['tpl_title']; ?>
                                    </div>
                                </td>
                                <td>
                                    <div class="layui-table-cell  w150 tc">
                                        <input type="text" name="sms_sign" lay-verify="required" value="<?php echo $vo['sms_sign']; ?>" onchange="changeTableVal('sms_template','tpl_id','<?php echo $vo['tpl_id']; ?>','sms_sign',this);" class="layui-input">
                                    </div>
                                </td>
                                <td>
                                    <div class="layui-table-cell w200 tc">
                                        <input type="text" name="sms_tpl_code" lay-verify="required" value="<?php echo $vo['sms_tpl_code']; ?>" onchange="changeTableVal('sms_template','tpl_id','<?php echo $vo['tpl_id']; ?>','sms_tpl_code',this);" class="layui-input">
                                    </div>
                                </td>
                                <td>
                                    <div class="layui-table-cell wauto">
                                        <input type="text" name="tpl_content" lay-verify="required" value="<?php echo $vo['tpl_content']; ?>" onchange="changeTableVal('sms_template','tpl_id','<?php echo $vo['tpl_id']; ?>','tpl_content',this);" class="layui-input">
                                    </div>
                                </td>
                            </tr>
                            <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.config({
        base: '/public/static/admin/' //静态资源所在路径
        ,version: '<?php echo $version; ?>'
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form;

        form.on('switch(is_open)', function(data){
            changeTableVal('smtp_tpl','tpl_id',$(this).data('tpl_id'),'is_open',this);
            return false;
        });

    });

</script>

</body>
</html>